package cn.client.ui.components

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp

@Composable
fun CreateButton(
    onClickCreate: () -> Unit
){
    Row (
        horizontalArrangement = Arrangement.End,
        modifier = Modifier.fillMaxWidth()
    ){
        Row (
            horizontalArrangement = Arrangement.Center,
            modifier = Modifier.padding(5.dp)
        ){
            Button(
                onClick = {
                    /* 发送意图 */
                    onClickCreate()
                }) {
                Text(text = "新增")
            }
        }
    }
}